  <div class="container">

  <div class="row">

    <div class="masthead" id="top_nav_body">
        <ul class="nav nav-pills pull-right">
          <?php 
          
          $status=NULL;
          foreach($this->data['nav'] as $item=>$item_url)
            {
            
            if($item == "home")$status="active";
            else $status="";
            echo '<li class="'.$status.'" ><a href="'.$this->data['site_url'].$item_url.'">'.$item.'</a></li>';

            }
          ?>
        </ul>

    </div>

  </div>
 </div>
<hr>